import { Module } from 'vuex'

const user: Module<Store.UserState, Store.RootState> = {
  namespaced: true, // 必须要开放
  state: {
    token: '' // token
  },
  mutations: {
    setToken(state, status: string) {
      state.token = status
    }
  },
  actions: {}
}

export default user
